-- GENERATED SPELL FOR [Wildlord Antelarion] --


function spell0_22127(pUnit, Event) --6Create Felsword Gas Mask,n/a--
pUnit:FullCastSpellOnTarget(39101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22127', 599, 1)
end

function Sorts_22127(pUnit, Event)
local choix_sorts_22127 = math.random(0, 0)
if choix_sorts_22127 == 0 then
pUnit:RegisterEvent('spell0_22127', 1, 1)
end
end

function mob22127_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22127', math.random(1500, 3000), 1)
end

function mob22127_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22127_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22127_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22127, 1, 'mob22127_Action')
RegisterUnitEvent(22127, 2, 'mob22127_Leave')
RegisterUnitEvent(22127, 3, 'mob22127_Kill')
RegisterUnitEvent(22127, 4, 'mob22127_Die')
